#ifndef FILE_STREAMER_H
#define FILE_STREAMER_H

#include <iostream>
#include <fstream>
#include <string>
#include <list>
#include <boost/shared_ptr.hpp>

#include "../model/title.h"
using namespace std;

namespace handler {
	class file_streamer {
	public:
		file_streamer(const string &file)
		:_file(file) { create_file(file); } 
		~file_streamer() {};

		void append_title(boost::shared_ptr<model::title> title);
		list<boost::shared_ptr<model::title> > read_file();

		list<string> list_files();
		void create_file(const string &name);
	private:
		string _file;
	};
}

#endif
